#ifndef SELECTIONSORT_H
#define SELECTIONSORT_H

namespace ED{

template<typename T>
    class SelectionSort
    {
        void selectSort(int *vet, unsigned int n)
        {
            int temp;
            int imenor, i, j;
            for (i = 0; i < n - 1; i++)
            {
                imenor = i;
                for (j = i + 1; j < n; j++)
                    if (vet[j] < vet[imenor]) imenor = j;
                temp = vet[i];
                vet[i] = vet[imenor];
                vet[imenor] = temp;
            }
        }
    };
}
#endif // SELECTIONSORT_H
